package com.wx.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.wx.entity.WechatUserAddress;

@Transactional
public interface UserAddressService {
	
	List<WechatUserAddress> selectAllByUid(Integer uid);
	
	int insert(WechatUserAddress record);
	
	void update(WechatUserAddress record);
	
	void updateIsDefault(Integer id, boolean isDefault, Integer uid);
	
	WechatUserAddress selectAddressByUidAndId(Integer id, Integer uid);
	
	int deleteByPrimaryKey(Integer id);
	
	WechatUserAddress selectDefaultAddressByUid(Integer uid);

}
